package org.spring.blog.dao;

import org.spring.blog.pojo.Comment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;

public interface CommentDao extends JpaRepository<Comment, String>, JpaSpecificationExecutor<Comment> {

    Comment findOneById(String _id);

    @Modifying
    int deleteAllByArticleId(String _articleId);
}
